home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15021 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  40 lines

  1. Path: satisfy.kiae.su!rich!usenet
  2. From: Andrew Sapozhnikov <sapa@hq.icb.chel.su>
  3. Newsgroups: comp.lang.c,comp.lang.c++,relcom.fido.su.c-c++
  4. Subject: Strange limits of compatibility in Watcom C/C++ 10.0a
  5. Date: Wed, 03 Apr 1996 10:38:24 +0000
  6. Organization: Chelyabinsk PTT NIC
  7. Message-ID: <31625520.1CFBAE39@hq.icb.chel.su>
  8. NNTP-Posting-Host: localhost
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; BSD/386 1.1 i386)
  13.  
  14. Hello everyone,
  15.  
  16. can anybody help me and answer, what reason for estimation this
  17. situations as errors. For example, Borland, Zortech, Microsoft and
  18. Symantec translators "gulp" it silently. Are this incompatibilies
  19. present in 10.5-10.6 ?
  20.  
  21. -------------------------- test.cpp ----------------------
  22. typedef  int ( *F ) ( int, int = 0 );                                          
  23.                                                                                
  24. class A {                                                                      
  25.    A ( ) { }                                                                   
  26.    ~A ( ) { }                                                                  
  27.    virtual X ( int x, ... ) { }                                                
  28. };                                                                             
  29.  
  30. -------------------------- test.err ----------------------
  31. TEST.C(1): Error! E243: (col 37) default arguments are not part of a
  32. function's
  33. TEST.C(6): Error! E505: (col 29) virtual member functions cannot have
  34. "..." sty
  35.  
  36.  
  37.  
  38.                         Best regards, Sapa
  39.                         sapa@hq.icb.chel.su
  40.